extended euclidean algorithm in cryptography